package com.jiawa.train.business.service;

import com.jiawa.train.business.domain.Train;
import com.jiawa.train.business.req.TrainQueryReq;
import com.jiawa.train.business.req.TrainSaveReq;
import com.jiawa.train.business.resp.TrainQueryResp;
import com.jiawa.train.common.resp.PageResp;

import java.util.List;

/**
 * @author zzl
 * @version 1.0
 */
public interface TrainService {
    /**
     * 新增一条高铁信息
     * @param req
     */
    void save(TrainSaveReq req);

    /**
     * 分页查询高铁信息
     * @param req
     * @return
     */
    PageResp<TrainQueryResp> queryList(TrainQueryReq req);

    /**
     * 根据id删除高铁信息
     * @param id
     */
    void delete(Long id);

    /**
     *
     * @return
     */
    List<TrainQueryResp> queryAll();

    /**
     *
     * @return
     */
    List<Train> selectAll();
}
